package cn.cloudplug.zdx_core.database;

import android.content.Context;

/**
 * Created by pc on 2018/1/22.
 */

public class DatabaseManager {

    private static final java.lang.String DATABASE_NAME = "ZDX.DB";
    //private UserProfileDao mDao = null;

    //private DaoSession mDaoSession = null;


    private DatabaseManager() {
    }

    private static final class Holder{
       private static DatabaseManager Instance = new DatabaseManager();
    }

    public static DatabaseManager getInstance(){
        return Holder.Instance;
    }

    /*public UserProfileDao getUserProfileDao(){
        return mDao;
    }*/

    public DatabaseManager init(Context context) {
        initDao(context);
        return this;
    }

    private void initDao(Context context) {
       // final ReleaseOpenHelper helper = new ReleaseOpenHelper(context, DATABASE_NAME);
        /*final Database db = helper.getWritableDb();
        mDaoSession = new DaoMaster(db).newSession();
        mDao = mDaoSession.getUserProfileDao();*/
    }
}
